﻿
@{
    Layout = null;
}

<div class="ui-down mt15">
    <div class="layui-container mt10">
        <div class="row ui-footer-friend">
            <div class="layui-col-md8">
                <div class="row">
                    <div class="layui-col-md12">
                        <span class="ui-footer-title">友情链接</span>
                    </div>
                    <div class="row ui-footer-fitem" id="dot_friends"></div>

                    <script id="dot_tmp_friends" type="text/x-dot-template">
                        {{ for(var idx in it) { if(it[idx].SourceUrl) { var elm = it[idx]; }}
                        <div class="layui-col-md3 pt10">
                            <a href="{{= elm.SourceUrl }}" target="_blank">{{= elm.Source }}</a>
                        </div>
                        {{ } } }}
                    </script>
                </div>
            </div>
            <div class="layui-col-md4 ui-footer-note">
                <span class="ui-footer-note-span pb20">
                    官方QQ群：331540812
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=c68583bddbeb6fe1771240831ad59f09a376c564a97f6ac3c4e7becb4e945313"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="C#基础" title="C#基础"></a>
                </span>
                <span class="ui-footer-note-span pb10">
                    <img src="/Content/img/qunQRcode.png" alt="群二维码" width="100" />
                </span>
            </div>
        </div>
        <div class="row">
            <div class="layui-col-md12 ui-footer-company">
                版权所有 CoderTalking<a href="http://www.miitbeian.gov.cn" target="_blank" style="color:#fff;margin-left:20px;">渝ICP备18008742号-1</a>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        $.post('/home/GetFriendHrefResult', {}, function (result) {
            var dotTmp = doT.template($("#dot_tmp_friends").text());
            $("#dot_friends").html(dotTmp(result.data));
        });
    });
</script>